﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace ARchGL.Platform.Core
{
    /// <summary>
    /// 用户与角色中间表扩展
    /// </summary>
    public class UserRoleExtend : Abp.Authorization.Users.UserRole
    {
        public UserRoleExtend() { }

        public UserRoleExtend(int? tenantId, long userId, Guid userPrimaryId, int roleId)
        {
            TenantId = tenantId;
            UserId = userId;
            UserPrimaryId = userPrimaryId;
            RoleId = roleId;
        }

        /// <summary>
        /// 用户 GUID 标识
        /// </summary>
        public Guid UserPrimaryId { get; set; }
        /// <summary>
        /// 自定义实体类名称（UserRoleExtend）
        /// </summary>
        [MaxLength(14)]
        private string Discriminator { get { return "UserRoleExtend"; } }
    }
}
